import Vue from "vue";
import VueRouter from "vue-router";
import Login from "@/views/Login";
import Home from "@/views/Home";
import BootIndex from "@/components/BootIndex";
import ServiceCenter from "@/components/ServiceCenter";
import UserCenter from "@/components/UserCenter";
import UserFeedback from "@/components/UserFeedback";
import Kejiqingbao from "@/components/Kejiqingbao";
import Pingshenzhengshu from "@/components/Pingshenzhengshu";
import Jianglizhengshu from "@/components/Jianglizhengshu";
import Biaozhun from "@/components/Biaozhun";
import Luneizhuanli from "@/components/Luneizhuanli";
import Luneiqikan from "@/components/Luneiqikan";
import Dangzhengxuanchuan from "@/components/Dangzhengxuanchuan";
import Luwaiqikan from "@/components/Luwaiqikan";
import Lunwen from "@/components/Lunwen";
import Zhuanli from "@/components/Zhuanli";
import Zhenggong from "@/components/Zhenggong";
import Diaoyan from "@/components/Diaoyan";
import Baogao from "@/components/Baogao";
import Gongzuolunwen from "@/components/Gongzuolunwen";

Vue.use(VueRouter);

const routes = [
  {
    path: "/login",
    name: "Login",
    component: Login,
  },
  {
    path: "/Home",
    name: "Home",
    component: Home,
    redirect: "/BootIndex",
    children: [
      {
        path: "/BootIndex",
        name: "BootIndex",
        component: BootIndex,
      },
      {
        path: "/ServiceCenter",
        name: "ServiceCenter",
        component: ServiceCenter,
      },
      {
        path: "/UserCenter",
        name: "UserCenter",
        component: UserCenter,
      },
      {
        path: "/UserFeedback",
        name: "UserFeedback",
        component: UserFeedback,
      },
      {
        path: "/Kejiqingbao",
        name: "Kejiqingbao",
        component: Kejiqingbao,
      },
      {
        path: "/Pingshenzhengshu",
        name: "Pingshenzhengshu",
        component: Pingshenzhengshu,
      },
      {
        path: "/Jianglizhengshu",
        name: "Jianglizhengshu",
        component: Jianglizhengshu,
      },
      {
        path: "/Biaozhun",
        name: "Biaozhun",
        component: Biaozhun,
      },
      {
        path: "/Luneizhuanli",
        name: "Luneizhuanli",
        component: Luneizhuanli,
      },
      {
        path: "/Luneiqikan",
        name: "Luneiqikan",
        component: Luneiqikan,
      },
      {
        path: "/Dangzhengxuanchuan",
        name: "Dangzhengxuanchuan",
        component: Dangzhengxuanchuan,
      },
      {
        path: "/Luwaiqikan",
        name: "Luwaiqikan",
        component: Luwaiqikan,
      },
      {
        path: "/Lunwen",
        name: "Lunwen",
        component: Lunwen,
      },
      {
        path: "/Zhuanli",
        name: "Zhuanli",
        component: Zhuanli,
      },
      {
        path: "/Zhenggong",
        name: "Zhenggong",
        component: Zhenggong,
      },
      {
        path: "/Diaoyan",
        name: "Diaoyan",
        component: Diaoyan,
      },
      {
        path: "/Baogao",
        name: "Baogao",
        component: Baogao,
      },
      {
        path: "/Gongzuolunwen",
        name: "Gongzuolunwen",
        component: Gongzuolunwen,
      },
    ],
  },
];

const router = new VueRouter({
  routes,
});

export default router;
